package com.ruoyi.form.entity;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * **********************
 * * Author: XiaShiLong *
 * * Date  : 2021-05-11 *
 * * Time  : 10:53      *
 * * to    : lz&xm      *
 * **********************
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor(access = AccessLevel.PRIVATE)
public class ConfigurationBuilder {

    private Long menuId;

    private String classPath;

    private boolean classBuildChild;

    private boolean buildEnum;

    private boolean buildHov;

    public static ConfigurationBuilder formBuild(Long menuId, String classPath) {
        return new ConfigurationBuilder(
                menuId, classPath, false, true, true
        );
    }

    public static ConfigurationBuilder hovBuild(Long menuId, String classPath) {
        return new ConfigurationBuilder(
                menuId, classPath, true, false, true
        );
    }
}
